package tr.edu.metu.is.mega.client.core.event;

import tr.edu.metu.is.mega.common.dto.BaseDTO;

/**
 * Selection event structure.
 * 
 * @param <T> type modifier
 */
public class SelectionEvent<T extends BaseDTO> {

    private T selectedObject;

    /**
     * Default constructor.
     */
    public SelectionEvent() {
    }

    /**
     * Default constructor.
     * 
     * @param object object instance
     */
    public SelectionEvent(T object) {
        this.selectedObject = object;
    }

    /**
     * Returns the selectedObject.
     * 
     * @return the selectedObject
     */
    public T getSelectedObject() {
        return selectedObject;
    }

    /**
     * Sets the selectedObject value.
     * 
     * @param selectedObject the selectedObject to set
     */
    public void setSelectedObject(T selectedObject) {
        this.selectedObject = selectedObject;
    }

}
